extends ./index.jade
block content
		.rightSide
				.container-fluid
						.row
								label 学校
								select#school
						.row.form-inline
								a.btn.btn-primary.col-sm-1.managerOnly(role='button'  href='/views/add_canteen.html') 新增食堂
								#tips.h4.text-danger.col-sm-4 查询中，请稍候
						.row
								table#table_canteen.table.table-bordered.table-hover.center
										thead
												tr
														th 序号
														th 配送员昵称
														th 配送员姓名
														th 性别
														th 电话
														th 地址
														th 注册时间
										tbody#canteen
						#paginator_canteen.row.text-right.forcedVerticalCenter
								span
										| 共
										span#total
										| 条记录
								#paginator.paginator 分页
		link(rel='stylesheet' href='/css/lib/select2.min.css')
		script#template_school(type='text/dot-tpl')
				| {{~it:value:index}}
				option(value='{{=value.id}}') {{=value.name}}
				| {{~}}
		script#template_canteen(type='text/dot-tpl')
				| {{~it:value:index}}
				tr(id='{{=value.value_id}}')
						td {{=index+1}}
						td {{=value.name}}
						td {{=value.nick}}
						|{{?value.gender=="2"}}
						td 女
						| {{??}}
						td 男
						|{{?}}
						td {{=value.phone}}
						td {{=value.address}}
						td {{=value.follow_time.split(" ")[0]}}
				| {{~}}
		script(src="/js/lib/require.js" data-main="/js/courier")